package com.travel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.entity.Browse;
import com.travel.entity.Report;
import com.travel.mapper.BrowseMapper;
import com.travel.service.BrowseService;

@Transactional
@Service
public class BrowseServiceImpl extends ServiceImpl<BrowseMapper, Browse> implements BrowseService{

	@Autowired
	BrowseMapper dao;
	
	@Override
	public List<Browse> getBrowse(Page<Browse> page, Browse view) {
		 page.setRecords(dao.getBrowse(page,view));
		 return page.getRecords();
	}
	
	@Override
	public List<Report> queryToday() {
		return dao.queryToday();
	}

	@Override
	public List<Report> queryYesterday() {
		return dao.queryYesterday();
	}

	@Override
	public List<Report> queryFlowDay(String time) {
		return dao.queryFlowDay(time);
	}
}
